<?php

namespace Model;


class MovieArray {
	
        private $m_movies = array();
        
        public function __construct() {
                
        }
        
        public function add(Movie $movie) {
                $this->m_movies[] = $movie; 
        }
        
        public function get() {
                return $this->m_movies;
        }
}

class Movie {
	
        private $m_id; 
        private $m_name; 
        private $m_review; 
		private $m_rating; 
		private $m_userId; 
		private $m_username;
        private $m_image;
		
        public function __construct($id, $name, $review, $rating, $userId, $username, $image) {
                $this->m_id = $id;
                $this->m_name = $name;
                $this->m_review = $review;
				$this->m_rating = $rating;
				$this->m_userId = $userId;
				$this->m_username = $username;
				$this->m_image = $image;
        }
        
        public function getMovieId() {
                return $this->m_id;
        }
        
        public function getName() {
                return $this->m_name;
					
        }
        
        public function getReview() {
                return $this->m_review; 
                                
        }
		
		public function getRating() {
                return $this->m_rating; 
                                
        }
		
		public function getUserId() {
                return $this->m_userId; 
                                
        }
		public function getUsername() {
                return $this->m_username; 
                                
        }
		public function getImage() {
                return $this->m_image; 
                                
        }
}